﻿using AutoMapper;
using MySystemSetup.BusinessDomain;
using MySystemSetup.IEntrepreneurInfo.Dto;
using MySystemSetup.IRole.Dto;
using MySystemSetup.ISheepYardSer.Dto;
using MySystemSetup.IUser;
using MySystemSetup.RBACDomain;

namespace MySystemSetup;

public class MySystemSetupApplicationAutoMapperProfile : Profile
{
    public MySystemSetupApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */



           //CreateMap<RoleInfo, RoleAddDto>().ReverseMap();
           CreateMap<UserInfo, UserDto>().ReverseMap();

        CreateMap<UserInfo, AddUserInfoDto>().ReverseMap();
        CreateMap<SheepYardAddDto, SheepYard>().ReverseMap();
        CreateMap<EntrepreneurAddDto, Entrepreneur>().ReverseMap();

    }
}
